#include<bits/stdc++.h>
using namespace std;
#define ll long long

void solve() {
    int n;
    cin >> n;
    vector<string>s(n);
    for (int i = 0; i < n; i++) {
        cin >> s[i];
    }

    for (int i = n - 1; i >= 0; i--) {
        cout << s[i] << "\n";
    }
}
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int t = 1;
    // cin >> t;
    while (t--) {
        solve();
    }
    return 0;
}








